package com.baizhi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("cmfz_album")
public class CmfzAlbum implements Serializable {
    @TableId(value = "album_id",type = IdType.AUTO)
    private Integer albumId;
    private String albumName;
    private String albumAuthor;
    private String albumTeller;
    private Integer albumEpisodes;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date albumDate;
    private String albumContent;
    private String albumImage;
    private Integer albumStar;

}
